body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

#container {
    display: flex;
    height: 100vh;
}

#avatar-container {
    flex: 1;
    background-color: #f0f0f0;
}

#chat-container {
    width: 300px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

#messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.input-area {
    padding: 20px;
    border-top: 1px solid #ccc;
}

#message-input {
    width: 70%;
    padding: 8px;
    margin-right: 10px;
}

button {
    padding: 8px 15px;
    cursor: pointer;
}

.message {
    margin: 10px;
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
}

.user-message {
    background-color: #e3f2fd;
    margin-left: auto;
}

.bot-message {
    background-color: #f5f5f5;
    margin-right: auto;
}

#avatar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
}

#avatar-container canvas {
    max-width: 100%;
    height: auto;
}

#loading-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
}

.avatar-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.avatar-controls button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 5px;
}

.avatar-controls button:hover {
    background: rgba(255, 255, 255, 1);
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    margin: 10px auto;
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
} 